package net.airtheva.hexagonMatrix;

import java.util.HashMap;

import javax.microedition.khronos.opengles.GL10;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.opengl.GLUtils;

public class Utils {
	
	protected static HashMap<Object, Bitmap> mTextures = new HashMap<Object, Bitmap>();
	
	public static Bitmap LoadTexture(int resId) {
		if(mTextures.containsKey(resId)) {
			return mTextures.get(resId);
		}
		else {
			Bitmap texture = BitmapFactory.decodeResource(Surface.Context.getResources(), R.raw.hexagon);
			mTextures.put(resId, texture);
			return texture;
		}
	}
	
}
